package com.example.user.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * \* @author: bear
 * \* Date: 2022-04-08-16:40
 * \* describe:
 */
@RestController
@RefreshScope
public class EnvController {
	@Value("${env}")
	private String env;

	@GetMapping("print")
	public String getEnv(){
		return env;
	}
}
